Auto merge of #5018 - brotzeit:clippy, r=alexcrichton
authorbors <bors@rust-lang.org>
Wed, 7 Feb 2018 02:06:13 +0000 (02:06 +0000)
committerbors <bors@rust-lang.org>
Wed, 7 Feb 2018 02:06:13 +0000 (02:06 +0000)
commit6d9fd1ceac93df985645774c67e574f8911f5343
treeac66a995186d3c3b59a7d6c64b02eee869b4db79
parent750df0ae37d011c46de6d45ed3bc1304411343ee
parent577b8a24312d0fed220b9ad07e2b91731bca7c1e
Auto merge of #5018 - brotzeit:clippy, r=alexcrichton

apply clippy suggestions

I want to try if this actually works =)

There are many other clippy suggestions. I wonder if I can take them for granted or if some of them would be refused.

For example:
```
warning: Constants have by default a `'static` lifetime
  --> src/cargo/lib.rs:53:23
   |
53 | pub const CARGO_ENV: &'static str = "CARGO";
   |                      -^^^^^^^---- help: consider removing `'static`: `&str`
   |
   = note: #[warn(const_static_lifetime)] on by default
   = help: for further information visit https://rust-lang-nursery.github.io/rust-clippy/v0.0.185/index.html#const_static_lifetime
```